<include file="Public:headerFrame" />

    <div class="admin_hd clearfix">
        <span class="fl"><a  href="<{:U('Admin-Index/mainFrame')}>" target="mainFrame">管理中心</a> - 编辑订单</span>
        <span class="fr"><a href="<{:U('Admin-Orders/index')}>" class="btn_sty">订单列表</a></span>
    </div>

    <div class="list_div mt10 padding_10">

        <div class="clearfix">
            <form action="<{:U('Admin-Orders/order_fahuo')}>" method="GET">
                <table width="100%" class="border1_blue">
                    <tr class="td_left">
                        <td>状态：<switch name="data.orderInfo.status" ><case value="0">等待付款</case><case value="1">已付款，等待发货&nbsp;&nbsp;<input type="hidden" name="order_id" value="<{$data.orderInfo.orderId}>"><input type="submit" value="发货"></case><case value="2">已发货，等待收货</case><case value="3">交易成功</case></switch></td>
                        <td width="50%">订单编号：<{$data.orderInfo.orderNo}></td>
                        <td>下单日期：<{$data.orderInfo.addDate|date="Y-m-d H:i:s",###}></td>
                    </tr>
                </table>
            </form>
        </div>

        <h3 class="clearfix mt20">购买的商品</h3>

        <div class="clearfix mt10">
            <table width="100%" cellspacing="1" cellpadding="0" border="0">
                <tr>
                    <th width="10%">图片</th>
                    <th width="60%">商品名称</th>
                    <th width="10%">商品积分</th>
                    <th width="10%">数量</th>
                    <th width="10%">购买价格</th>
                </tr>

                <volist name="data.orderInfo.info" id="vo">
                <tr>
                    <td><a href="__APP__/goods/index/id/<{$vo.goods_id}>" target="_blank"><img src="<{$data.orderInfo.path}>x_<{$vo.orderPic}>" /></a></td>
                    <td><a href="__APP__/goods/index/id/<{$vo.goods_id}>" target="_blank"><{$vo.title}></a></td>
                    <td><{$vo.points}></td>
                    <td><{$vo.buyNum}></td>
                    <td bgcolor="#FBF7EE"><{$vo.price}></td>
                </tr>
                </volist>
            </table>
        </div>

        <div class="clearfix mt10">
            <table width="100%" cellspacing="1" border="0" bgcolor="#cccccc">
                <tr>
                    <th style="background:#eeeeee">配送费用:</th>
                    <td>￥&nbsp;0&nbsp;元</td>
                </tr>

                <tr>
                    <th style="background:#eeeeee">您可获得积分:</th>
                    <td><{$data.orderInfo.totalPoints}></td>
                </tr>

                <tr>
                    <th style="background:#eeeeee">订单总金额:</th>
                    <td class="price1">￥&nbsp;<{$data.orderInfo.totalPrice}>&nbsp;元</td>
                </tr>
            </table>
        </div>

        <h3 class="clearfix h20 mt20">收货人信息</h3>
        <div class="clearfix mt10">

            <form action="<{:U('Admin-Orders/edit_order_sub')}>" method="POST">
                <table width="100%" cellspacing="1" border="0" bgcolor="White" style="border:1px solid #DDDDDD" class="order_info">
                    <tr>
                        <th style="background: #d3eaf5">收货人姓名:</th>
                        <td><input type="text" name="name" value="<{$data.userInfo.name}>"></td>
                        <th style="background: #d3eaf5">收货人Mail:</th>
                        <td><input type="text" name="email" value="<{$data.userInfo.email}>"></td>
                    </tr>
                    <tr>
                        <th style="background: #d3eaf5">配送地区:</th>
                        <td><input type="text" name="sel0" value="<{$data.userInfo.sel0}>">-<input type="text" name="sel1" value="<{$data.userInfo.sel1}>" >-<input type="text" name="sel2" value="<{$data.userInfo.sel2}>"></td>
                        <th style="background: #d3eaf5">街道：</th>
                        <td><input type="text" name="mobile" value="<{$data.userInfo.site}>"></td>
                    </tr>
                    <tr>
                        <th style="background: #d3eaf5">收货人邮编:</th>
                        <td><input type="text" name="zip_code" value="<{$data.userInfo.zip_code}>"></td>
                        <th style="background: #d3eaf5">联系电话:</th>
                        <td><input type="text" name="mobile" value="<{$data.userInfo.mobile}>"></td>
                    </tr>
                    <tr>
                        <th style="background: #d3eaf5">配送方式:</th>
                        <td>EMS</td>
                        <th style="background: #d3eaf5">付款方式:</th>
                        <td> 支付宝(及时付款) &nbsp;</td>
                    </tr>
                    <tr>
                        <th style="background: #d3eaf5">支付币别:</th>
                        <td colspan="3">人民币</td>
                    </tr>
                    <tr>
                        <th style="background: #d3eaf5" valign="top">收货人地址:</th>
                        <td valign="top" colspan="3"><input type="text" name="site" value="<{$data.userInfo.site}>"></td>
                    </tr>
                    <tr>
                        <th style="background: #d3eaf5" valign="top">订单附言:</th>
                        <td valign="top" colspan="3"><{$orders_list.remark}></td>
                    </tr>
                    <tr>
                        <td colspan="4" align="center">
                            <input type="hidden" name="user_id" value="<{$data.userInfo.id}>">
                            <input type="submit" value="修改信息" >
                        </td>
                    </tr>
                </table>
            </form>

        </div>

    </div>

<include file="Public:footFrame" />
